﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Talentnet.Core.Utilities.Mail;

public partial class testEmail : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        MailServiceSettings settings = new MailServiceSettings();
        settings.AuthenticationType = SmtpAuthentication.Basic;
        settings.EnableSSL = true;
        settings.Port = 587;
        settings.Server = "smtp.gmail.com";
        settings.Username = "talentnet.mailer@gmail.com";
        settings.Password = "T@l3ntNet";
        MailServices.SendEmail("talentnet.mailer@gmail.com", "phuchua@gmail.com;au9999it@yahoo.com;doanhuannha@yahoo.com", "Test email", "Mail ne. Coi thu nhe :P", settings);
    }
}
